package com.company.dao;

import com.company.pojo.CheckGroup;
import com.company.pojo.Setmeal;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author fu xiao liu
 * @date 2021-08-06 15:16
 */
public interface SetMealDao {
    List<CheckGroup> findAllFromCheckGroup();

    void add(Setmeal setmeal);

    void setSetMealAndCheckGroup(Map<String, Integer> map);

    Page<CheckGroup> selectByCondition(@Param("queryString") String queryString);

    void delete(Integer id);

    void deleteSetMealANDGroup(Integer id);

    void deleteSetMealANDOrder(Integer id);

    Setmeal findById(Integer id);

    List<Integer> findCheckGroupIdBySetMeal(Integer id);

    void editSetMeal(Setmeal setmeal);


    List<Setmeal> findAll();

    Setmeal  findById4Detail(Integer id);
}
